{extend name="layout_modal" /}
{block name="content"}
<section class="content" style="padding-top:0px;">
<div class="row">
  <div class="box">
    <form role="form" action="{:url('data_update')}">
      <div class="box-body">
        <div class="form-group">
          <label for="exampleInputEmail1">上级分类</label>
          <input type="text" class="form-control" value="{$info.pname}" readonly>
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">标题</label>
          <input type="text" class="form-control" placeholder="标题" name="title" value="{$info.title}">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">首字母</label>
          <input type="text" class="form-control" placeholder="首字母" name="initial" value="{$info.initial}">
        </div>
        <div class="form-group">
            <label for="exampleInputEmail1">图片</label>
            <div class="input-group input-group-sm">
                <input type="text" class="form-control" name="thumb" id="thumb_text" value="{$info.thumb}">
                <span class="input-group-btn">
                    <input id="thumb" class="upload_picker" type="file" btnTxt="上传图片">
                </span>
            </div>
            <div id="queue_thumb"></div>
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">官方指导价（万元）</label>
          <input type="text" class="form-control" placeholder="官方指导价（万元）" name="price" value="{$info.price}">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">年款</label>
          <select class="form-control" name="yeartype">
            <option value="">请选择</option>
            {for start="2000" end="2030"}
            <option value="{$i}" {eq name="info.yeartype" value="$i"} selected {/eq}>{$i}</option>
            {/for}
          </select>
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">生产状态</label>
          <select class="form-control" name="productionstate">
            <option value="">请选择</option>
            <option value="在产" {eq name="info.productionstate" value="在产"} selected {/eq}>在产</option>
            <option value="停产" {eq name="info.productionstate" value="停产"} selected {/eq}>停产</option>
          </select>
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">销售状态</label>
          <select class="form-control" name="salestate">
            <option value="">请选择</option>
            <option value="待销" {eq name="info.salestate" value="待销"} selected {/eq}>待销</option>
            <option value="在销" {eq name="info.salestate" value="在销"} selected {/eq}>在销</option>
            <option value="停销" {eq name="info.salestate" value="停销"} selected {/eq}>停销</option>
          </select>
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">尺寸类型</label>
          <select class="form-control" name="sizetype">
            <option value="">请选择</option>
            {volist name=":config('car_sizetype')" id="v"}
            <option value="{$key}" {eq name="info.sizetype" value="$key"} selected {/eq}>{$v}</option>
            {/volist}
          </select>
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">是否隐藏</label>
          <div>
            <label><input type="radio" name="hide" value="0" {eq name="info.hide" value="0"} checked {/eq}> 显示</label>
            <label><input type="radio" name="hide" value="1" {eq name="info.hide" value="1"} checked {/eq}>隐藏</label>
          </div>
        </div>
      </div>
      <input type="hidden" name="id" value="{$info.id}">
    </form>
  </div>
</div>
</section>
{/block}